
# poem应用的子路由

from django.urls import path
from . import views 
app_name = 'poem'

urlpatterns = [
    # 主页 详情 增 删 改
    path('', views.index, name='index'), 
    path('detail/<int:id>', views.detail, name='detail'),
    path('add', views.add, name='add'),
    path('delete/<int:id>', views.delete, name='delete'),
    path('edit/<int:id>', views.edit, name='edit'),
    path('svc_add', views.svc_add, name='svc_add'),
    path('svc_edit/<int:id>', views.svc_edit, name='svc_edit'),
    path('add_poet/', views.add_poet, name='add_poet'),
    path('add_poet_form/', views.add_poet_form, name='add_poet_form'),
    path('add_poet_modelform/', views.add_poet_modelform, name='add_poet_modelform'),
]